<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Post>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% 
        if (!Model.ThreadReference.IsLoaded) Model.ThreadReference.Load();
        if (!Model.ForumReference.IsLoaded) Model.ForumReference.Load();
    %>
    <div style="margin-bottom: 5px; height: 30px;">
        <%:Ajax.ForumMapPath(Model.Forum.ID) %>
    </div>
    <% Html.RenderPartial("Detail", Model); %>
    <div class="ui-corner-top ui-widget-content" style="margin-right: 5px;">
        <div class="ui-widget-header ui-corner-top ui-border-bottom" style="overflow: auto;">
            <h3 style="margin-left: 10px;">
                <%:Html.ActionLink("Reply:" + Model.Title, "Index", "Thread", new { Area="Community",id=Model.Thread.ID},null)%></h3>
        </div>
        <%
            var _vData = new ViewDataDictionary();
            _vData["Forum"] = Model.Forum;
            _vData["TitlePrefix"] = "Re:"+Model.Title;
            Html.RenderPartial("PostForm", _vData); 
        %>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<%:Html.ScriptRefs(new string[] { "jquery.validate.min.js", "MicrosoftMvcJQueryValidation.js" })%>
</asp:Content>
